import request from '@/utils/request'

// 查询推广人列表
export function list(query) {
    return request({
        url: '/jxmarketingmanagement/MarketingPerson/list',
        method: 'get',
        params: query
    })
}
// 查看二维码
export function downloadQr(query) {
    return request({
        url: '/jxmarketingmanagement/MarketingPerson/downloadQr',
        responseType: 'blob',
        method: 'get',
        params: query
    })
}

// 添加推广人
export function MarketingPerson(query) {
    return request({
        url: '/jxmarketingmanagement/MarketingPerson',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 修改推广人
export function modification(query) {
    return request({
        url: '/jxmarketingmanagement/MarketingPerson',
        method: 'put',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 删除推广人
export function delById(query) {
    return request({
        url: '/jxmarketingmanagement/MarketingPerson/delById',
        method: 'get',
        params: query
    })
}




